<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>系统管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#importBox_goods").hide();
			$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
		
	 function shows(){
		
		window.location.href="${ctx}/sys/yongUser/updateView";
		
	}
		
	/* function close_imbox(){
		$("#importBox_goods").hide();
	}	 */
	
	
	</script>
	<!-- <style>
		#importBox_goods{
			position:fixed;
			padding:0 15px;
			width:350px;
			height:270px;
			background:#FFF;
			top:10%;
			left:25%;
			margin:0 auto;
			border:1px solid #CCC;
			box-shadow:3px 3px 10px 4px #DDD;
		}
		#importBox_goods .ib_title{
			margin-bottom:15px;
		}
		#forms .titleName{
			display:inline-block;
			width:80px;
		}
		#forms input[type='text']{
			border-radius: 3px;
    		border: 1px solid #AAA;
    		margin-bottom:0;
		}
		#forms .error{
			font-size:10px;
			height:20px;
			color:#F34;
			padding-left:85px;
		}
	</style>  -->
	
</head>
<body>

  <%--  <div id="importBox_goods" class="hide">
     <div class='ib_title'>
     <h3>修改密码</h3>
     </div>
       <form action="${ctx}/sys/yongUser/personDate" method="post" id="forms">
       
	
		<span class='titleName'>原密码&nbsp;&nbsp;&nbsp;&nbsp;:</span><input type='text' name="yanMiMa" style='width:185px;' id="yanMiMa"/>
		<div class='error'></div>
	    <span class='titleName'>新密码&nbsp;&nbsp;&nbsp;&nbsp;:</span><input type='text' name="password" style='width:185px;' id="password"/>
	   
	    <div class='error'></div>
	    <span class='titleName'>确认密码&nbsp;&nbsp;&nbsp;&nbsp;:</span><input type='text' name="password1" style='width:185px;' id="password1"/>
		<div class='error'></div>
		</form>

    <input id="btnCancel" class="btn" type="button" style='margin-left:220px;' value="确定" onclick="confirm_imbox()"/>
    <input id="btnCancel" class="btn" type="button" style='margin-left:5px;' value="取消" onclick="close_imbox()"/>
    </div> --%>
    
	<ul class="nav nav-tabs">
		<li><a href="javascript:void(0)">个人信息</a></li>
	</ul><br/>
	<form:form id="inputForm" modelAttribute="user"  method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>
		<div class="control-group">
			<label class="control-label">用户名称:</label>
			<div class="controls">
				<form:input path="userName" htmlEscape="false" maxlength="50" readonly="true"/>
				
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">角色:</label>
			<div class="controls">
				<form:input path="userRole" htmlEscape="false" maxlength="50" readonly="true"/>
				
			</div>
		</div>
		
		<div class="control-group">
			<label class="control-label">所管辖门店:</label>
			<div class="controls">
				<form:input path="cnName" htmlEscape="false" contenteditable="true" style = 'width:400px' readonly="true"/>
				
			</div>
		</div>
		<div class="form-actions">
			<input id="btnCancel" class="btn btn-primary" type="button" value="修改密码" onclick="shows()"/>
		</div>
	</form:form>
</body>
</html>